Skip to content

Back end translations#535

Open
struan wants to merge 10 commits into518-language-aware-messagesfrom
518-back-end-translations
Open

Back end translations#535
struan wants to merge 10 commits into518-language-aware-messagesfrom
518-back-end-translations

Conversation

@struan
Copy link
Copy Markdown
Member

@struan struan commented Mar 3, 2026

Wrap strings in Queue etc in gettet plus add in templates for translating to Welsh.

This includes some translations for the purposes of testing which will need someone to confirm. Note that once full translations are in some of the tests will require updating. The current tests do enough to check everything works but are not complete.

Fixes #519

@struan struan requested review from ajparsons and dracos March 3, 2026 13:20
Copy link
Copy Markdown
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One query is all :)
(And translation of the cy email templates which I know you know)

my $ret = undef;
if (my $msg = dbh()->selectrow_hashref("select * from message where group_id = ?", {}, $group_id)){
throw FYR::Error("You've already sent these messages, there's no need to send them twice.", FYR::Error::GROUP_ALREADY_QUEUED);
throw FYR::Error(_("You've already sent these messages, there's no need to send them twice."), FYR::Error::GROUP_ALREADY_QUEUED);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these messages shown, or are they just logged for us somewhere?
Just wondering if this commit isn't needed, wasn't sure.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's definitely bits where $error->text is displayed to the user even is a lot of them are handled by using the code so seemed safest to translate them all.

@struan struan force-pushed the 518-language-aware-messages branch from 87d6d09 to f9ebc08 Compare March 23, 2026 16:19
@struan struan force-pushed the 518-back-end-translations branch from 220db89 to 2c9c8a4 Compare March 23, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants